#hanoi:
      	addiu	$sp,$sp,-40 #40
        sw		$31,$sp,36  #44
        sw		$fp,$sp,32
        move	$fp,$sp
        sw		$4,$fp,40   #50
        lw		$3,$fp,40
        li		$2,1                    # 0x1
        bne		$3,$2,6					#bne	$3,$2,$L2
        nop					#60
		lw		$2,$fp,40
        nop
		sw		$2,$fp,24
        beq		$0,$0,14	#70			#b		$L4
        nop
#$L2:        
    	lw		$2,$fp,40
        nop
		addiu	$2,$2,-1	#80
        move	$4,$2
        lui		$25,0xA000		        #lw		$25,%call16(hanoi)($28)
        addiu	$25,$25,0x0040		    #lw		$25,%call16(hanoi)($28)
        nop					#90
		jalr	$31,$25		#94
        nop					#98
		lw		$28,$fp,16  #9C
        addu	$2,$2,$2	#A0			#sll		$2,$2,1 #$2 = $2 * 2  # $2 = $2 + $2
        addiu	$2,$2,1
        sw		$2,$fp,25
#$L4:
    	lw		$2,$fp,25
        move	$sp,$fp
        lw		$31,$sp,36
        lw		$fp,$sp,32
        addiu	$sp,$sp,40
        jr		$31
        nop